package com.wfcm.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.wfcm.dao.TbServiceTokenDao;
import com.wfcm.entity.TbServiceTokenEntity;
import com.wfcm.service.TbServiceTokenService;



@Service("tbServiceTokenService")
public class TbServiceTokenServiceImpl implements TbServiceTokenService {
	@Autowired
	private TbServiceTokenDao tbServiceTokenDao;
	
	@Override
	public TbServiceTokenEntity queryObject(String token){
		return tbServiceTokenDao.queryObject(token);
	}
	
	@Override
	public List<TbServiceTokenEntity> queryList(Map<String, Object> map){
		return tbServiceTokenDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return tbServiceTokenDao.queryTotal(map);
	}
	
	@Override
	public void save(TbServiceTokenEntity tbServiceToken){
		tbServiceTokenDao.save(tbServiceToken);
	}
	
	@Override
	public void update(TbServiceTokenEntity tbServiceToken){
		tbServiceTokenDao.update(tbServiceToken);
	}
	
	@Override
	public void delete(String token){
		tbServiceTokenDao.delete(token);
	}
	
	@Override
	public void deleteBatch(String[] tokens){
		tbServiceTokenDao.deleteBatch(tokens);
	}
	
}
